<%--
  Created by IntelliJ IDEA.
  User: guoshunw
  Date: 13-9-2
  Time: 上午10:02
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%--<s:debug />--%>
<table border="0" class="new-request-table">
    <tr>
        <td class="label"><s:text name="request.EPMBasedPWSToLocal"/></td>
        <td>
            <s:select headerKey="" headerValue="%{getText('pleaseSelect')}"
                      required="true" list="changeProjects" id="attr_projectToChange"
                      name="attr_projectToChange"
                      value="%{req.attributes.attr_projectToChange}"
                      theme="simple"/>
            <s:hidden id="attr_extra_project_name" name="attr_extra_project_name"/>
        </td>
    </tr>
</table>

<script type="text/javascript">

    var requestForm = $('#' + global.NEW_REQUEST_TAB_ID);

    $("#attr_projectToChange", requestForm).change(function(e){
        $("#attr_extra_project_name", requestForm).val($("option:checked", this).text());
    });

    global.getIncludeAttributes = function () {
        var pNames = ['attr_projectToChange', 'attr_extra_project_name'];
        var postDate = global.getAttributes(pNames, pNames.slice(0, -1));
        return postDate;
    }

</script>
